#define  _CRT_SECURE_NO_WARNINGS 1
#include"SLTNode.h"

//void SLTNodetest1()
//{
//	SLTNode* node1 = newNodeBuy(1);
//	SLTNode* node2 = newNodeBuy(2);
//	SLTNode* node3 = newNodeBuy(3);
//	SLTNode* node4 = newNodeBuy(4);
//	SLTNode* plist = node1;
//	SLTPrint(plist);
//}
void SLTNodetest2()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPrint(plist);
	SLTPrint(plist);
	SLTPopFront(&plist);
	SLTPrint(plist);
	SLTPushFront(&plist, 0);
	SLTPopBack(&plist);
	SLTPrint(plist);
	SLTNode* find=SLTFind(plist, 3);
	SLTInsert(&plist,find, 2);
	SLTPrint(plist);
}

int main()
{
	//SLTNodetest1();
	SLTNodetest2();
	return 0;
}